import request from "./request";


//获取首页表格数据
export function getTableData() {
  return request({
    url: '/home/getTableData',
    method: 'get',
  })
}

//获取首页统计数据
export function getCountData() {
  return request({
    url: '/home/getCountData',
    method: 'get',
  })
}

//获取用户列表
export function getUserData(params) {
  return request({
    url: '/user/getUserData',
    method: 'get',
    params
  })
}
//删除用户
export function deleteUser(params) {
  return request({
    url: '/user/deleteUser',
    method: 'get',
    params
  })
}

//添加用户
export function addUser(params) {
  return request({
    url: '/user/addUser',
    method: 'post',
    data: params
  })
}

//编辑用户
export function editUser(params) {
  return request({
    url: '/user/editUser',
    method: 'post',
    data: params
  })
}

//获取菜单
export function getMenu(params) {
    return request({
      url: '/permission/getMenu',
      method: 'post',
      data: params
    })
}